{extend name="extra@admin/content"}

{block name="content"}
<form onsubmit="return false;" action="__SELF__" data-auto="true" method="post" class='form-horizontal' style='padding-top:20px'>

    <div class="form-group">
        <label class="col-sm-2 control-label">二维码名称 <span class="nowrap"></span></label>
        <div class='col-sm-8'>
            <input type="text" name="name" required="required" title="请输入二维码名称" placeholder="请输入二维码名称" value="" class="layui-input">
<!--            <p class="help-block">网站名称，显示在浏览器标签上</p>-->
        </div>
    </div>


    <div class="form-group">
        <label class="col-sm-2 control-label">二维码分类 <span class="nowrap"></span></label>
        <div class='col-sm-8'>
            <select name='type' class='layui-select full-width' style='display:block'>
                <!--{foreach $menus as $menu}-->
                <!--{eq name='menu.id' value='$vo.pid|default=0'}-->
                <option selected value='{$menu.id}'>{$menu.name}{$menu.remark}</option>
                <!--{else}-->
                <option value='{$menu.id}'>{$menu.name}{$menu.remark}</option>
                <!--{/eq}-->
                <!--{/foreach}-->
            </select>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">二维码图片 <span class="nowrap"></span></label>
        <div class='col-sm-8'>
            <label class="layui-col-xs8 think-form-group-left">
                <input name="image" required value='{$vo.image|default=""}' placeholder="请上传二维码图片" class="layui-input">
            </label>
            <a class="layui-col-xs2 layui-btn think-form-group-right" data-file="btn" data-field="image" data-type="png,jpg,gif,jpeg">
                <i class="layui-icon layui-icon-upload"></i> 上传图片
            </a>
        </div>


    </div>


    <div class="form-group">
        <label class="col-sm-2 control-label">备注 <span class="nowrap"></span></label>
        <div class='col-sm-8'>
            <input type="text" name="remark"  title="请输入备注" placeholder="请输入备注" value="" class="layui-input">
            <!--            <p class="help-block">程序的版权信息设置，在后台登录页面显示</p>-->
        </div>
    </div>

    <div class="hr-line-dashed"></div>

    <div class="col-sm-4 col-sm-offset-2">
        <div class="layui-form-item text-center">
            <button class="layui-btn" type="submit">保存配置</button>
        </div>
    </div>

</form>

{/block}